/*
 * File Name : file.cpp
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-7
 * Last Edit : 2010-5-7
 */

#include "file.h"

file::file()
:type(1),size(0),data("")
{
}

int file::get_type(){
  return 1;
}

float file::get_size(){

return size;
}

std::string *file::get_data(){
return &data;
}

bool file::set_data(std::string *new_data){
  data = *new_data;
  return true;
}
